package com.jk.controller;

import com.jk.pojo.ServerBagEntity;
import com.jk.pojo.ServerBagTypeEntity;
import com.jk.service.ServerBagServer;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @ClassName ServerBagController
 * @Description TODO
 * @Author Administrator
 * @Date 2022/10/19 9:56
 * @Version 1.0
 */
@RequestMapping("serverBag")
@RestController
public class ServerBagController {

    @Autowired
    private ServerBagServer serverBagServer;


    /**
     * @description:
     * @author: tut
     * @date: 2022/10/19 15:20
     * @param: []
     * @return: java.util.List<com.jk.pojo.ServerBagEntity>
     **/
    @RequestMapping("findServerBag")
    public List<ServerBagEntity> findServerBag(ServerBagEntity serverBag){
        return serverBagServer.findServerBag(serverBag);
    }

    @RequestMapping("getServerType")
    public List<ServerBagTypeEntity> getServerType(){
        return serverBagServer.getServerType();
    }




}
